const routes = [
    {
      path: '/',
      name: '',
      component: () => import('../views/Tabbar.vue'),
      children:[
        {
            path: '/index/home',
            name: 'home',
            component: () => import('../views/index/Home.vue')
        },
        {
            path: '/index/tuan',
            name: 'tuan',
            component: () => import('../views/index/Tuan.vue')
        },
        {
            path: '/index/order',
            name: 'order',
            component: () => import('../views/index/Order.vue')
        },
        {
            path: '/index/mine',
            name: 'mine',
            component: () => import('../views/index/Mine.vue')
        } 
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/Login.vue')
    },
    {
      path: '/register',
      name: 'register',
      component: () => import('../views/Register.vue')
    },
    {
      path: '/details/:id',
      name: 'details',
      component: () => import('../views/Details.vue')
    },
  ]
  export default routes